home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 October: Mac OS SDK / Dev.CD Oct 97 SDK1.toast / Development Kits (Disc 1) / Interfaces&Libraries / Universal / Interfaces / AIncludes / ConnectionTools.a < prev    next >
Encoding:
Text File  |  1997-08-12  |  3.3 KB  |  117 lines  |  [TEXT/MPS ]

  1. ;
  2. ;    File:        ConnectionTools.a
  3. ;
  4. ;    Contains:    Communications Toolbox Connection Tools Interfaces.
  5. ;
  6. ;    Version:    Technology:    System 7.5
  7. ;                Release:    Universal Interfaces 3.0.1
  8. ;
  9. ;    Copyright:    © 1988-1997 by Apple Computer, Inc., all rights reserved
  10. ;
  11. ;    Bugs?:        Please include the the file and version information (from above) with
  12. ;                the problem description.  Developers belonging to one of the Apple
  13. ;                developer programs can submit bug reports to:
  14. ;
  15. ;                    devsupport@apple.com
  16. ;
  17. ;
  18.     IF &TYPE('__CONNECTIONTOOLS__') = 'UNDEFINED' THEN
  19. __CONNECTIONTOOLS__ SET 1
  20.  
  21.     IF &TYPE('__CONDITIONALMACROS__') = 'UNDEFINED' THEN
  22.     include 'ConditionalMacros.a'
  23.     ENDIF
  24.     IF &TYPE('__DIALOGS__') = 'UNDEFINED' THEN
  25.     include 'Dialogs.a'
  26.     ENDIF
  27.     IF &TYPE('__CONNECTIONS__') = 'UNDEFINED' THEN
  28.     include 'Connections.a'
  29.     ENDIF
  30.  
  31.  
  32.                                                             ; messages for DefProc 
  33. cmInitMsg                        EQU        0
  34. cmDisposeMsg                    EQU        1
  35. cmSuspendMsg                    EQU        2
  36. cmResumeMsg                        EQU        3
  37. cmMenuMsg                        EQU        4
  38. cmEventMsg                        EQU        5
  39. cmActivateMsg                    EQU        6
  40. cmDeactivateMsg                    EQU        7
  41. cmIdleMsg                        EQU        50
  42. cmResetMsg                        EQU        51
  43. cmAbortMsg                        EQU        52
  44. cmReadMsg                        EQU        100
  45. cmWriteMsg                        EQU        101
  46. cmStatusMsg                        EQU        102
  47. cmListenMsg                        EQU        103
  48. cmAcceptMsg                        EQU        104
  49. cmCloseMsg                        EQU        105
  50. cmOpenMsg                        EQU        106
  51. cmBreakMsg                        EQU        107
  52. cmIOKillMsg                        EQU        108
  53. cmEnvironsMsg                    EQU        109                    ; new connection tool messages for ctb 1.1 
  54. cmNewIOPBMsg                    EQU        110
  55. cmDisposeIOPBMsg                EQU        111
  56. cmGetErrorStringMsg                EQU        112
  57. cmPBReadMsg                        EQU        113
  58. cmPBWriteMsg                    EQU        114
  59. cmPBIOKillMsg                    EQU        115
  60.  
  61.                                                             ;    messages for validate DefProc    
  62. cmValidateMsg                    EQU        0
  63. cmDefaultMsg                    EQU        1
  64.  
  65.                                                             ;    messages for Setup DefProc    
  66. cmSpreflightMsg                    EQU        0
  67. cmSsetupMsg                        EQU        1
  68. cmSitemMsg                        EQU        2
  69. cmSfilterMsg                    EQU        3
  70. cmScleanupMsg                    EQU        4
  71.  
  72.                                                             ;    messages for scripting defProc    
  73. cmMgetMsg                        EQU        0
  74. cmMsetMsg                        EQU        1
  75.  
  76.                                                             ;    messages for localization defProc    
  77. cmL2English                        EQU        0
  78. cmL2Intl                        EQU        1
  79.  
  80.                                                             ; private data constants 
  81. cdefType                        EQU        'cdef'                ; main connection definition procedure 
  82. cvalType                        EQU        'cval'                ; validation definition procedure 
  83. csetType                        EQU        'cset'                ; connection setup definition procedure 
  84. clocType                        EQU        'cloc'                ; connection configuration localization defProc 
  85. cscrType                        EQU        'cscr'                ; connection scripting defProc interfaces 
  86. cbndType                        EQU        'cbnd'                ; bundle type for connection 
  87. cverType                        EQU        'vers'
  88. CMDataBuffer            RECORD 0
  89. thePtr                     ds.l    1                ; offset: $0 (0)
  90. count                     ds.l    1                ; offset: $4 (4)
  91. channel                     ds.w    1                ; offset: $8 (8)
  92. flags                     ds.w    1                ; offset: $A (10)
  93. sizeof                     EQU *                    ; size:   $C (12)
  94.                         ENDR
  95. ; typedef struct CMDataBuffer *            CMDataBufferPtr
  96.  
  97. CMCompletorRecord        RECORD 0
  98. async                     ds.b    1                ; offset: $0 (0)
  99. filler                     ds.b    1                ; offset: $1 (1)
  100. completionRoutine         ds.l    1                ; offset: $2 (2)
  101. sizeof                     EQU *                    ; size:   $6 (6)
  102.                         ENDR
  103. ; typedef struct CMCompletorRecord *    CMCompletorPtr
  104.  
  105. ;     Private Data Structure    
  106. CMSetupStruct            RECORD 0
  107. theDialog                 ds.l    1                ; offset: $0 (0)
  108. count                     ds.w    1                ; offset: $4 (4)
  109. theConfig                 ds.l    1                ; offset: $6 (6)
  110. procID                     ds.w    1                ; offset: $A (10)        ;  procID of the tool    
  111. sizeof                     EQU *                    ; size:   $C (12)
  112.                         ENDR
  113. ; typedef struct CMSetupStruct *        CMSetupPtr
  114.  
  115.     ENDIF ; __CONNECTIONTOOLS__ 
  116.  
  117.